<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<button onclick="getFruitDetail()">番茄</button>
<script src="js/jquery.min.js"></script>
<script>
    function getFruitDetail() {
        location.href = "/fruitdetail/fruit/2004"
//        $.getJSON("/fruitdetail/activity?fruitId=2001",function (data) {
//            console.log(data)
//        })
    }


</script>
</body>
</html>